<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><!-- 使用c:标签需要添加本行代码 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
  <head>  
    <title>考勤管理页面</title>
	<link rel="stylesheet" type="text/css" href="css/manager.css">
  </head>
  <body>
    <div id="user_top">
        学生考勤界面
    </div>
    <form action="<%=path%>/ActionServlet?entity=AttendanceSheet&method=insert" method="post">
    	<div style="width:760px; height:480px; overflow:auto;"><!-- 滚动条 -->
    	<div id="user_mid">
        <table id="user_table" id="user_table" border="0" width="100%" cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                	<td>学生学号</td>
                	<td>学生姓名</td>
                	<td>性别</td>
                	<td>课程名称</td>
                	<td>班级名称</td>
                	<td>操作</td>
                	<td>操作</td>
                </tr> 
      </thead>
            <c:forEach items="${studentList}" var="item" varStatus="var">
                <tr>
                    <td>${item.student_id}</td>
                    <td>${item.student_name}</td>
                    <td>${item.student_sex}</td>
                    <td>${item.course_name}</td>
                    <td>${item.class_name}</td>
                    <td><input type="radio" name="status${var.index}" value="1">正常</td>
                    <td><input type="radio" name="status${var.index}" value="0">缺勤</td>
                </tr>
            </c:forEach>
        </table>
    </div><!-- user_mid end -->
    </div>
     	<div id="user_bottom">
    	<input type="submit" value="保存">
    </div>
    </form>
  </body>
</html>